// Author: wsfuyibing <682805@qq.com>
// Date: 2025-05-23

package list

import (
	"server/app/http/models"
)

// Response
// 出参.
type Response struct {
	Id         int64
	Sort       int
	Name       string
	GoodsTotal int
	GoodsCount int
}

func (o *Response) With(m *models.GoodsCategory) *Response {
	o.Id = m.Id
	o.Sort = m.Sort
	o.Name = m.Name
	o.GoodsTotal = m.GoodsTotal
	o.GoodsCount = m.GoodsCount
	return o
}
